home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / dkbuts.zip / IBMIMG.MAK < prev    next >
Makefile  |  1991-05-16  |  2KB  |  82 lines

  1. # IBM Makefile for DKB Utilities by David Buck and Aaron Collins
  2. # This file is released to the public domain.
  3. #
  4. # Note for the IBM Version:
  5. # Uses system environment variable LIB for the linker's .LIB file path.
  6. # (Example:  Set LIB=C:\LIB)  The system environment variable CMODEL also
  7. # may be defined for the memory model of the compiler.  We are using the
  8. # "Large" memory model (Example Set CMODEL=L).  If you don't want to
  9. # use the DOS environment variables, uncomment the following two lines:
  10. #
  11. # MAKE Macros and Such...
  12. #
  13.  
  14. #CMODEL =L
  15. #LIB    =c:\lib
  16. CC  =cl
  17.  
  18. LINKER  =link /PACKCODE /FARCALL /EXEPACK
  19.  
  20. # Uncomment for 8086/8088 instruction set usage
  21. #
  22. CFLAGS  =/A$(CMODEL) /Gmsr /FPi /H32 /c /J
  23.  
  24. # Uncomment for 80186/80268 (incl. V20!) instruction set usage  [/Gmsr2]
  25. #
  26. #CFLAGS =/A$(CMODEL) /Gmsr2 /FPi87 /H32 /c /J
  27.  
  28. # If you have OS/2 to compile under, fix directory name and add this option
  29. # to CFLAGS above...
  30. #
  31. # /B2 C:\msc\c2l.exe
  32. #
  33.  
  34. # MS's NMAKE implicit rules for making an .OBJ file from a .C file...
  35. #
  36. .c.obj :
  37.  $(CC) $(CFLAGS) /Oaxz $*.c
  38.  
  39. #
  40.  
  41. all:    dump2i24.exe combdump.exe catdump.exe dump2mtv.exe \
  42.         halftga.exe gluetga.exe dump2raw.exe tga2dump.exe ip2dkb.exe
  43.  
  44. dump2i24.exe:   dump2i24.obj
  45.     $(LINKER) dump2i24;
  46.  
  47. combdump.exe:   combdump.obj
  48.     $(LINKER) combdump;
  49.  
  50. catdump.exe:    catdump.obj
  51.     $(LINKER) catdump;
  52.  
  53. dump2mtv.exe:   dump2mtv.obj
  54.     $(LINKER) dump2mtv;
  55.  
  56. halftga.exe:    halftga.obj
  57.     $(LINKER) halftga;
  58.  
  59. gluetga.exe:    gluetga.obj
  60.     $(LINKER) gluetga;
  61.  
  62. dump2raw.exe:   dump2raw.obj
  63.     $(LINKER) dump2raw;
  64.  
  65. tga2dump.exe:   tga2dump.obj
  66.     $(LINKER) tga2dump;
  67.  
  68. ip2dkb.exe: ip2dkb.obj
  69.     $(LINKER) ip2dkb;
  70.  
  71. dump2i24.obj:   dump2i24.c
  72. combdump.obj:   combdump.c
  73. catdump.obj:    catdump.c
  74. dump2mtv.obj:   dump2mtv.c
  75. halftga.obj:    halftga.c
  76. gluetga.obj:    gluetga.c
  77. tga2dump.obj:   tga2dump.c
  78. ip2dkb.obj:     ip2dkb.c
  79.  
  80. dump2raw.obj:   dump2raw.c
  81.  $(CC) $(CFLAGS) /Oaxz /DIBM $*.c
  82.